package com.test.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

@Mapper
public interface SaleTicketMapper {

    @Select("SELECT stock from tb_stock where sku_id = 2600242")
    List<Map<String, Object>> query();
    @Update("update tb_stock set stock = #{stock} where sku_id = 2600242")
    void update(@Param("stock") Integer stock);
}
